﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ToolsCatalog.Model
{
    public class Part : ToolBase
    {
        int id;
        int quantity;
        Tool tool;

        public Tool Tool
        {
            get { return tool; }
            set 
            {
                tool = value;
                OnPropertyChanged("Tool");
            }

        }
        public int Id
        {
            get { return id; }
            set { id = value; }
        }
        public int Quantity
        {
            get { return quantity; }
            set { quantity = value; }
        }

        public override string ToString()
        {
            return "part:" +Tool.ToString();
        }
    }
}
